package cn.ticket.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ticket.dao.TicketorderMapper;
import cn.ticket.model.Ticketorder;
import cn.ticket.service.TicketOrderService;
@Service
public class TicketOrderServiceImpl implements TicketOrderService {

	@Autowired
	TicketorderMapper ticketOrderMapper;
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Ticketorder record) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.insert(record);
	}

	@Override
	public int insertSelective(Ticketorder record) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.insertSelective(record);
	}

	@Override
	public Ticketorder selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Ticketorder record) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Ticketorder record) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Map<String, Object>> getInfoByBusId(Integer busId) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.getInfoByBusId(busId);
	}

	@Override
	public List<Map<String, Object>> getValidateTicketsInfoByStaffId(Integer staffId) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.getValidateTicketsInfoByStaffId(staffId);
	}

	@Override
	public List<Map<String, Object>> getInvalidateTicketsInfoByStaffId(Integer staffId) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.getInvalidateTicketsInfoByStaffId(staffId);
	}

	@Override
	public List<Map<String, Object>> getSeatInfoByStaffIdAnd(Integer staffId, String seatName, Integer busOrderId) {
		// TODO Auto-generated method stub
		return ticketOrderMapper.getSeatInfoByStaffIdAnd(staffId, seatName, busOrderId);
	}

}
